{extend name="base" /} {block name="body"}
<div class="layui-body">
	<!--tab标签-->
	<div class="layui-tab layui-tab-brief">
		<ul class="layui-tab-title">
			<li class="layui-this">反馈信息</li>
		</ul>
		<div class="layui-tab-content">
			<form class="layui-form layui-form-pane" action="" method="get">
				<div class="layui-inline">
					<label class="layui-form-label">用户名</label>
					<div class="layui-input-inline">
						<input type="text" name="user_name"  placeholder="请输入用户名" class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<select name="status">
						<option value="0" >审核状态</option>
						<option value="2" {if $status=='2' }selected{/if}>已回复</option>
						<option value="1" {if $status=='1' }selected{/if}>未回复</option>
					</select>
				</div>
				<div class="layui-inline">
					<button class="layui-btn">搜索</button>
				</div>
				<a class="layui-btn layui-btn-status page-btns" href="{:url('status',['table'=>'sys_feedback','val'=>2,'field'=>'status'])}"><i class="fa fa-check-circle-o"></i> 处理</a>
				<a class="layui-btn layui-btn-danger page-btns" href="{:url('status',['table'=>'sys_feedback','val'=>1,'field'=>'status'])}"><i class="fa fa-ban"></i> 不处理</a>
			</form>
			<hr>
			<table class="layui-table layui-form">
				<thead>
					<tr>
						<th style="width: 30px;">
							<input type="checkbox" lay-skin="primary" lay-filter="allChoose">
						</th>
						<th>反馈用户</th>
						<th>内容</th>
						<th>反馈时间</th>
						<th>状态</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<form id="listForm">
					{foreach name="list" item="vo"}
					<tr>
						<td>
							<input type="checkbox" name="ids[]" value="{$vo.id}" class="layui-checkbox checkbox-ids" lay-skin="primary">
						</td>
						<td>{$vo.user_name}</td>
						<td>{$vo.content}</td>
						<td>{$vo.msg_time}</td>
						<td>{if $vo.status==1}待处理{else}已处理{/if}</td>
						<td><a href="{:url('sh_feedback',['id'=>$vo['id']])}" class="layui-btn layui-btn-normal layui-btn-small">查看</a></td>
					</tr>
					{/foreach}
					</form>
				</tbody>
			</table>
			{$list->render()}
		</div>
	</div>
</div>
<script>
	var GV = {
		current_controller: "{$controller}/feedback"
	};
</script>
{/block}